﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CarScript
/// </summary>
namespace CE.CarInsurance
{
    public class CarScript
    {
        public CarScript()
        {
            ClearFields();
        }

        private Int64 _carscriptid;
        private Int64 _cecarid;
        private Int64 _refceuserid;

        private int _insurancetype;
        private string _coveragecommencedate;
        private string _currentinsurer;
        private int _suminsured;
        private int _garagetype;
        private int _noofdriver;
        private int _driverage1;
        private int _driverage2;
        private string _provinceregistration;
        private int _occupationid;
        private bool _isclaimlastyear;

        private DateTime _createddate;
        private DateTime _modifieddate;

        public Int64 CarScriptID
        {
            get { return _carscriptid; }
            set { _carscriptid = value; }
        }

        public Int64 CECarId
        {
            get { return _cecarid; }
            set { _cecarid = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public int InsuranceType
        {
            get { return _insurancetype; }
            set { _insurancetype = value; }
        }

        public string CoverageCommenceDate
        {
            get { return _coveragecommencedate; }
            set { _coveragecommencedate = value; }
        }

        public string CurrentInsurer
        {
            get { return _currentinsurer; }
            set { _currentinsurer = value; }
        }

        public int SumInsured
        {
            get { return _suminsured; }
            set { _suminsured = value; }
        }

        public int GarageType
        {
            get { return _garagetype; }
            set { _garagetype = value; }
        }

        public int NoOfDriver
        {
            get { return _noofdriver; }
            set { _noofdriver = value; }
        }

        public int DriverAge1
        {
            get { return _driverage1; }
            set { _driverage1 = value; }
        }

        public int DriverAge2
        {
            get { return _driverage2; }
            set { _driverage2 = value; }
        }

        public string ProvinceRegistration
        {
            get { return _provinceregistration; }
            set { _provinceregistration = value; }
        }

        public int OccupationId
        {
            get { return _occupationid; }
            set { _occupationid = value; }
        }

        public bool IsClaimLastYear
        {
            get { return _isclaimlastyear; }
            set { _isclaimlastyear = value; }
        }
       
        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _carscriptid = 0;
            _cecarid = 0;
            _refceuserid = 0;
            _insurancetype = 0;
            _coveragecommencedate = "";
            _currentinsurer = "";
            _suminsured = 0;
            _garagetype = 0;
            _noofdriver = 0;
            _driverage1 = 0;
            _driverage2 = 0;
            _provinceregistration = "";
            _occupationid = 0;
            _isclaimlastyear = false;
           
            _createddate = new DateTime();
            _modifieddate = new DateTime();
        }
    }
}